package cn.bluech.lib.utils;

public class ClickSparer {
    private static long lastClickTime = 0;


    public static boolean isDense(int timeMin){
        long timeCur = System.currentTimeMillis();
        if(timeCur-lastClickTime<timeMin)
            return true;

        lastClickTime = timeCur;
        return false;
    }

    public static boolean isDense(){
        return isDense(1000);
    }
}
